import axios from 'axios';

export function getGoodsSpuPage(params: any) {
  return axios.get('/mall/goodsspu/page', { params });
}

export function addGoodsSpu(data: any) {
  return axios.post('/mall/goodsspu', data);
}

export function updateGoodsSpu(data: any) {
  return axios.put('/mall/goodsspu', data);
}

/**
 *  需要将单引号'，换成反单引号`
 */
export function deleteGoodsSpu(id: string) {
  return axios.delete(`/mall/goodsspu/${id}`);
}
